package com.yc;

import lombok.Data;

/**
 * @author kukaha
 */
@Data
public class CustomException extends RuntimeException{

    private Integer code;

    /**
     * 自定义错误类型
     * @param code 自定义的错误码
     * @param msg 自定义的错误提示
     */
    public CustomException(Integer code, String msg){
        super(msg);
        this.code = code;
    }
}

